package hu.plajko.dev;

import java.net.MalformedURLException;
import java.net.URL;

public class PLajko extends Human implements Developer {

	public Object resume = new Object() {
		public URL getDownloadURL() throws MalformedURLException {
			return new URL("https://www.dropbox.com/s/86is4di84x5ux0t/plajko_cv_en_2012-04_v2.pdf");
		}
	};

	public boolean deserveBetter() {
		return getCurrentSalary() < getSalaryPreference();
	}

	public void toHappyDeveloper() {
		setCurrentSalary(getSalaryPreference());
	}

	public void applyForJob(ProjectManager manager) {
		try {
			manager.receiveResume(this);
		} catch (NoobException e) {
			this.withExtendedSkills(e).applyForJob(manager);
		}
	}

	public static void main(String[] args) {
		new PLajko().applyForJob(new KKovacs());
	}

	private PLajko withExtendedSkills(NoobException exception) {
		return null;
	}

	private long getSalaryPreference() {
		return 0;
	}

	private long getCurrentSalary() {
		// TODO Auto-generated method stub
		return 0;
	}

	private void setCurrentSalary(long salaryPreference) {
		// TODO Auto-generated method stub

	}
}
